<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSmsSendTaskTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('sms_send_task', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("plan_i")->comment("发送计划ID");
            $table->integer("user_id")->comment("发送用户Id");
            $table->string("templet_id",50)->comment("短信模板ID");
            $table->string("mobile",30)->comment("手机号码");
            $table->integer("is_success")->comment("发送状态,1成功,0失败");
            $table->string("text",255)->comment("发送状态");
            $table->string("result",500)->comment("返回信息");
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('sms_send_task');
    }
}
